package com.itheima.hutool;

import cn.hutool.core.io.FileUtil;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

public class Demo01 {
    public static void main(String[] args) {

//          File file1 = FileUtil.file("E:\\", "aaa", "bbb", "a.txt");
//        System.out.println(file1);//e:\aaa\bbb\a.txt
//
//        File touch = FileUtil.touch(file1);
//        System.out.println(touch);

//     ArrayList<String> list = new ArrayList<>();
//        list.add("aaa");
//        list.add("aaa");
//        list.add("aaa");
//        File file3 = FileUtil.appendLines(list, "D:\\a.txt", "UTF-8");
//        System.out.println(file3);
//        List<String> list = FileUtil.readLines("D:\\a.txt", "UTF-8");
//        System.out.println(list);

        List<String> list = FileUtil.readLines("D:\\a.txt", "UTF-8");
        System.out.println(list);


    }
}
